home *** CD-ROM | disk | FTP | other *** search
- Path: dagwood.cs.ucsb.edu!not-for-mail
- From: schapel@cs.ucsb.edu (Steve E. Chapel)
- Newsgroups: comp.lang.c++
- Subject: Re: g++2.7.2 bug
- Date: 5 Jan 1996 11:44:47 -0800
- Organization: Computer Science, UCSB
- Message-ID: <4cjv3f$1dv@dagwood.cs.ucsb.edu>
- References: <30EAB273.41C6@AED-Graphics.DE>
- NNTP-Posting-Host: dagwood.cs.ucsb.edu
-
- Joerg Leinhoss <Leinhoss@AED-Graphics.DE> writes:
-
- >The functions a and b differs only in the function global declaration of i, j
- >and k. One macro version makes a simple function call, the other make a array
- >access with i, j and k. Both functions should produce the same result with both
- >output macros!
-
- >While compiling g++2.7.2 warns:
- >test.cc: In function `void a()':
- >test.cc:12: warning: name lookup of `i' changed for new ANSI `for' scoping
- >test.cc:10: warning: using obsolete binding at `i'
-
- >Ok, I know what this means. No Comment.
-
- You think you know what it means, but you don't. g++ is telling your where
- your bug is. I put in the missing int's and the program worked with g++ 2.7.2.
- To be fair, it does look like a bug in g++ in the sense that it didn't use
- the obsolete binding correctly, but there is also a bug in your program
- in the sense that it is not compliant with draft standard C++.
-
- My advise: report this bug in gnu.g++.bug where this post belonged in the
- first place.
- --
- Steve Chapel schapel@cs.ucsb.edu | http://www.cs.ucsb.edu/~schapel
- Senior in Computer Science at the | Check out my updated web page!!
- University of California, Santa Barbara | finger -l schapel@eci1.ucsb.edu
- "I jumped, O my brothers, and I fell hard, but I did not snuff it." - Alex
-